package bw.hackathon.ub;




import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;

public class TestReady extends Activity{
	
	private TextView check;
	private String getExtrass;
	private Thread thread;
	
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.test_ready);
		
		check = (TextView) findViewById(R.id.textView12);
		Bundle extras = getIntent().getExtras();
		check.setText(extras.getString("message"));
		
		Button Complete = (Button) findViewById(R.id.testready);
		Complete.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Intent intent = new Intent(TestReady.this,LaunchPage.class);
				startActivityForResult(intent,0);
				
			}});
	
		
	}
	@Override
	public boolean onTouchEvent(MotionEvent evt)
	{
	    if(evt.getAction() == MotionEvent.ACTION_DOWN)
	    {
	        synchronized(thread){
	            thread.notifyAll();
	        }
	    }
	    return true;
	}    

}
